package oss.aliyun.springai;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("oss.aliyun.springai.Mapper")
@EnableCaching
public class SpringAiApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringAiApplication.class, args);
    }

    // 这里添加一个方法，使用QuestionAnswerAdvisor
    // 示例代码：
    // new QuestionAnswerAdvisor(
    //     new PromptTemplate("You are a helpful AI assistant.")
    //         .addSystemMessage("Keep your answers short and concise.")
    //         .build()
    // )
    // .topk(2)
    // .build()
}
